use crossbeam_channel::bounded;
use crate::hystrix::pool_metrics::PoolMetrics;

pub(crate) struct ExecutorPool {
    pub name:String,
    pub max:i32,
    metrics:PoolMetrics,

}


impl ExecutorPool {
    pub fn new(name:String) -> Self {
        // let () = bounded(50);
        let mut p = ExecutorPool{
            name:name.clone(),
            max: 0,
            metrics: PoolMetrics::new(name.clone())
        };

        p
    }
}